package com.lonni.rpc.core.register;

import com.lonni.rpc.core.model.RpcRequest;
import com.lonni.rpc.core.register.model.Service;
import com.lonni.rpc.core.register.model.ServiceURL;

import java.net.InetSocketAddress;
import java.util.List;

/**
 * 服务发现接口
 *
 * @author: Lonni
 * @date: 2024/7/9 0009 15:37
 */
public interface ServiceDiscovery {

    /**
     * 服务发现
     * @param service
     * @return
     */
    List<ServiceURL> getService(Service service) throws Exception;
}
